﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Collections;

namespace SeDuce.Utility
{
    public class Misc
    {
        public static List<string> arrImgType = new List<string>() { ".jpg", ".gif", ".png", ".bmp"};
        public static List<string> arrTorrent = new List<string>() { ".torrent" };
        
        public static string filepath = "~/UploadFiles";
        public static string brand_filepath = "~/UploadFiles/Brands";
        public static string ad_filepath = "~/UploadFiles/Ads";
        public static string product_filepath = "~/UploadFiles/Products";
        public static string gallery_filepath = "~/UploadFiles/Gallery";
        public static string news_filepath = "~/UploadFiles/Press";
        public static string watermark1 = "~/images/watermark1.png";
        public static string watermark2 = "~/images/watermark2.png";
        //WebControl 访问权限
        public static string Default_VisitXML = string.Format("{0},{1}", EnumMapHelper.GetStringFromEnum(RoleTypeEnum.Admin), EnumMapHelper.GetStringFromEnum(RoleTypeEnum.AdvancedRole));
        public static string Default_GridView1 = string.Format("{0}", EnumMapHelper.GetStringFromEnum(RoleTypeEnum.Admin));

        public enum RoleTypeEnum
        {
            /// <summary>
            /// 管理员
            /// </summary>
            [Description("管理员")]
            Admin = 0,

            /// <summary>
            /// 普通用户
            /// </summary>
            [Description("普通用户")]
            CommonRole = 1,

            /// <summary>
            /// 高级用户
            /// </summary>
            [Description("高级用户")]
            AdvancedRole = 2
        }



        /// <summary>
        /// 商品状态
        /// </summary>
        public enum ProductStatusEnum { 现货 = 1, 预订 = 2, 活动中 = 3, 已售完 = 4 }

        /// <summary>
        /// 商品序列（置顶 | 置底 | 普通）
        /// </summary>
        public enum ProductSeqEnum { 置顶 = 2, 普通 = 1, 置底 = 0 }

        /// <summary>
        /// 文章所属类型
        /// </summary>
        public enum ArticleTypeEnum { 品牌文化 = 0, SeDuce合作 = 1, 购买方法 = 2, 支付信息说明 = 3, 联系SeDuce = 4 }

    }
}
